package io.sdl.dao;

import io.sdl.common.dao.BaseDao;
import io.sdl.entity.SdlPatientsArchivesEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 
 *
 * @author Dc 1211734836@qq.com
 * @since 1.0.0 2025-03-28
 */
@Mapper
public interface SdlPatientsArchivesDao extends BaseDao<SdlPatientsArchivesEntity> {

    Integer getNum(@Param("patientId") Long patientId);

    List<SdlPatientsArchivesEntity> getPatientsBypatientId(@Param("patientId") Long patientId,@Param("filterDate") String filterDate, @Param("page") Integer page, @Param("limit")Integer limit,@Param("sortOrder")String sortOrder);

    SdlPatientsArchivesEntity selectByPatientId(@Param("patientId") Long patientId);


    List<SdlPatientsArchivesEntity> getByPatientId(@Param("patientId") Long patientId);

    Integer removeById(@Param("id") Long id);
}